function getNow() {
    var now = new Date();
    var y = now.getFullYear();
    var m = now.getMonth() + 1;
    m = m < 10 ? "0" + m : m;
    var d = now.getDate();
    d = d < 10 ? "0" + d : d;
    var h = now.getHours();
    h = h < 10 ? "0" + h : h;
    var f = now.getSeconds();
    f = f < 10 ? "0" + f : f;
    return y + "-" + m + "-" + d + " " + h + ":" + f;
}